package com.study.designmodes.service.liabilityChain.v5.handler;

import com.study.designmodes.service.liabilityChain.v5.OrderDetailVO;
import com.study.designmodes.service.liabilityChain.v5.OrderHandleContext;


/**
 * @author yangyanbin
 * @since 20230613
 **/
public interface OrderHandler {

    /**
     * 具体处理类
     *
     * @param context 包括原始查询值 和 处理结果 等
     */
    <T extends OrderDetailVO> void handle(OrderHandleContext context);


    /**
     * 处理类权重
     *
     * @return {@link Double}
     */
    Integer weight();

}
